projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723e509
)
gtk/gtkeventcontrollerscroll.c: Include fallback-c89.c
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 28 Aug 2018 09:28:23 +0000
(17:28 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 28 Aug 2018 09:43:11 +0000
(17:43 +0800)
... instead of just math.h, as it uses the C99 function trunc(). This
is so that the code builds on pre-C99 compilers.
gtk/gtkeventcontrollerscroll.c
patch
|
blob
|
history
diff --git
a/gtk/gtkeventcontrollerscroll.c
b/gtk/gtkeventcontrollerscroll.c
index 73848cd6e577476ee6f9ac94c1aa636724d536a3..314be1b7088b11d9b748ae7537b9a9a1dbf115ea 100644
(file)
--- a/
gtk/gtkeventcontrollerscroll.c
+++ b/
gtk/gtkeventcontrollerscroll.c
@@
-60,8
+60,6
@@
**/
#include "config.h"
-#include "math.h"
-
#include "gtkintl.h"
#include "gtkwidget.h"
#include "gtkeventcontrollerprivate.h"
@@
-70,6
+68,8
@@
#include "gtkmarshalers.h"
#include "gtkprivate.h"
+#include "fallback-c89.c"
+
#define SCROLL_CAPTURE_THRESHOLD_MS 150
typedef struct